package com.dream.testtubebaby.adapter;

import java.util.List;

import android.content.Context;

import com.dream.testtubebaby.R;
import com.dream.testtubebaby.data.AddToldData;
import com.dream.testtubebaby.utils.ViewHolder;

public class DocRequireAdapter extends CommonAdapter<AddToldData> {

	public DocRequireAdapter(Context context, List<AddToldData> mDatas,
			int itemLayoutId) {
		super(context, mDatas, itemLayoutId);
	}

	@Override
	public void convert(final ViewHolder helper, final AddToldData item) {
		String title = mContext.getResources().getString(R.string.add_told_remind_message,
				item.getFromtime(), item.getTotime(), item.getStepname()) + " " + item.getDrug() + " " + item.getHowmuch();
		helper.setText(R.id.doc_require_content_tv, title);
	}
}
